package com.ysd.entity;

import java.math.BigDecimal;

/**
 * 商品书
 * 
 * @author dzj20
 *
 */
public class Books {
	private Integer id; // 书编号
	private String name; // 书名
	private String author; // 作者
	private String press; // 出版社
	private String IBSN; // 国际标准书号
	private String edition; // 版次
	private Integer commodityCode; // 商品编码
	private String canUse; // 是否可用
	private Integer stock; // 库存
	private String brand; // 品牌同出版社
	private String packing; // 包装(如:平装之类的)
	private String format; // 开本(如:36开之类的)
	private String onSaleTime; // 上架时间
	private String paper; // 用纸(如:胶用纸等)
	private Integer pageNumber; // 页数
	private Integer wordNumber; // 字数
	private BigDecimal sellPrice; // 销售价
	private BigDecimal discountPrice; // 折扣价
	private Integer categoryId; // 分类id
	private String img; // 图片

	private String beginPrice; // 起始价格
	private String endPrice; // 结束价格
	private Integer page; // 页数
	private Integer size; // 每页条数
	private Integer limit; // 每页条数

	private Category category;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public String getIBSN() {
		return IBSN;
	}

	public void setIBSN(String iBSN) {
		IBSN = iBSN;
	}

	public String getEdition() {
		return edition;
	}

	public void setEdition(String edition) {
		this.edition = edition;
	}

	public Integer getCommodityCode() {
		return commodityCode;
	}

	public void setCommodityCode(Integer commodityCode) {
		this.commodityCode = commodityCode;
	}

	public String getCanUse() {
		return canUse;
	}

	public void setCanUse(String canUse) {
		this.canUse = canUse;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getPacking() {
		return packing;
	}

	public void setPacking(String packing) {
		this.packing = packing;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public String getOnSaleTime() {
		return onSaleTime;
	}

	public void setOnSaleTime(String onSaleTime) {
		this.onSaleTime = onSaleTime;
	}

	public String getPaper() {
		return paper;
	}

	public void setPaper(String paper) {
		this.paper = paper;
	}

	public Integer getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}

	public Integer getWordNumber() {
		return wordNumber;
	}

	public void setWordNumber(Integer wordNumber) {
		this.wordNumber = wordNumber;
	}

	public BigDecimal getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(BigDecimal sellPrice) {
		this.sellPrice = sellPrice;
	}

	public BigDecimal getDiscountPrice() {
		return discountPrice;
	}

	public void setDiscountPrice(BigDecimal discountPrice) {
		this.discountPrice = discountPrice;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getBeginPrice() {
		return beginPrice;
	}

	public void setBeginPrice(String beginPrice) {
		this.beginPrice = beginPrice;
	}

	public String getEndPrice() {
		return endPrice;
	}

	public void setEndPrice(String endPrice) {
		this.endPrice = endPrice;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Books(Integer id, String name, String author, String press, String iBSN, String edition,
			Integer commodityCode, String canUse, Integer stock, String brand, String packing, String format,
			String onSaleTime, String paper, Integer pageNumber, Integer wordNumber, BigDecimal sellPrice,
			BigDecimal discountPrice, Integer categoryId, String img, String beginPrice, String endPrice, Integer page,
			Integer size, Integer limit, Category category) {
		super();
		this.id = id;
		this.name = name;
		this.author = author;
		this.press = press;
		IBSN = iBSN;
		this.edition = edition;
		this.commodityCode = commodityCode;
		this.canUse = canUse;
		this.stock = stock;
		this.brand = brand;
		this.packing = packing;
		this.format = format;
		this.onSaleTime = onSaleTime;
		this.paper = paper;
		this.pageNumber = pageNumber;
		this.wordNumber = wordNumber;
		this.sellPrice = sellPrice;
		this.discountPrice = discountPrice;
		this.categoryId = categoryId;
		this.img = img;
		this.beginPrice = beginPrice;
		this.endPrice = endPrice;
		this.page = page;
		this.size = size;
		this.limit = limit;
		this.category = category;
	}

	public Books() {
		super();
	}

	@Override
	public String toString() {
		return "Books [id=" + id + ", name=" + name + ", author=" + author + ", press=" + press + ", IBSN=" + IBSN
				+ ", edition=" + edition + ", commodityCode=" + commodityCode + ", canUse=" + canUse + ", stock="
				+ stock + ", brand=" + brand + ", packing=" + packing + ", format=" + format + ", onSaleTime="
				+ onSaleTime + ", paper=" + paper + ", pageNumber=" + pageNumber + ", wordNumber=" + wordNumber
				+ ", sellPrice=" + sellPrice + ", discountPrice=" + discountPrice + ", categoryId=" + categoryId
				+ ", img=" + img + ", beginPrice=" + beginPrice + ", endPrice=" + endPrice + ", page=" + page
				+ ", size=" + size + ", limit=" + limit + ", category=" + category + "]";
	}

}
